<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>可拖拽小部件（Draggable Widget）演示</title>
  
  <link rel="stylesheet" href="../jQuery/jquery-ui-1.12.1.custom/jquery-ui.min.css">
  <style>
  #draggable {
    width: 100px;
    height: 100px;
    background: #ccc;
  }
  #box{
  	border: 1px solid black;
  	width: 400px;
  	height: 400px;
  }
  </style>
  <script src="../课件/jquery-2.1.1.min.js"></script>
  <script src="../jQuery/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
</head>
<body>
 <div id="box">
 	<div id="draggable">请拖拽我！</div>
 </div>
 
 
<script>
$( "#draggable" ).draggable({containment:'parent'}).resizable({containment:'parent'});
</script>
 
</body>
</html>